package com.bw.service;

import com.bw.domain.Role;
import com.bw.domain.User;
import com.bw.domain.UserMoney;
import com.bw.utils.MyEx;

import java.util.List;

public interface UserService {
    User selectByPhone(String phone);

    List<User> list(User user);

    User get(String id);

    List<Role> listRole();

    int update(User user);

    List<Role> listRoleByUserId(String id);

    boolean recharge(UserMoney userMoney) throws MyEx;

    List<UserMoney> listRecharge(UserMoney userMoney);

    int updateStatus(User user);

    List<User> listByIds(String ids);
}
